import service from '@/utils/request'

export const getCode = (key) => {
  return service({
    url: '/manager/captcha',
    method: 'GET',
    responseType: 'blob',
    params: key
  })
}
export const login = (data) => {
  return service({
    url: '/manager/login',
    method: 'post',
    data
  })
}
export const getRouter = () => {
  return service({
    url: '/manager/menus',
    method: 'GET'
  })
}
